
TEMPLATE = app
TARGET = QLuoshu
CONFIG   += qt staticlib

QT += core
QT += webkit
QT += xml
QT += network
QT += sql

INCLUDEPATH += .
INCLUDEPATH += ./debugwin
INCLUDEPATH += ./htmledit
INCLUDEPATH += ../libs/libhtml/include

#UI_DIR	= ui
#win32:RC_FILE = win.rc

#win32:LIBS += -L"D:/GTD/QLuoshu/src/libs/all_os_libs/"
#LIBS += -L"D:\GTD\QLuoshuAll-build-desktop\src\libs\all_os_libs" -ltidy
LIBS += -L"../libs/all_os_libs" -ltidy

HEADERS         = mainwindow.h \
    plugins/KnowledgeBase/knowledgebasemainwindow.h \
    plugins/KnowledgeBase/knowledgebase.h \
    leftbottombar.h \
    config.h \
    QLuoshuApplication.h \
    debugwin/QAppDebugWin.h \
    debugwin/QAppDebugTextEdit.h \
    htmledit/xmlhighlighter.h \
    htmledit/ui_table_setting.h \
    htmledit/ui_edit_html.h \
    htmledit/table_setting.h \
    htmledit/qvimedit.h \
    htmledit/interface.h \
    htmledit/html_loader.h \
    htmledit/href_start.h \
    htmledit/href_gui.h \
    htmledit/edit_html.h \
    htmledit/baseui.h \
    htmledit/base_modul.h \
    htmledit/base_edit.h \
    plugins/KnowledgeBase/knowledgebaseplugin.h \
    plugins/KnowledgeBase/mytabwidget.h \
    plugins/KnowledgeBase/knowledgebaseconfigwidget.h \
    constants.h \
    plugins/KnowledgeBase/knowledgebaseguidecreatefolders.h \
    plugins/KnowledgeBase/kbcreatefolderwizard.h \
    globle.h
SOURCES         = main.cpp \
                  mainwindow.cpp \
                    leftbottombar.cpp \
    plugins/KnowledgeBase/knowledgebasemainwindow.cpp \
    plugins/KnowledgeBase/knowledgebase.cpp \
    QLuoshuApplication.cpp \
    debugwin/QAppDebugWin.cpp \
    debugwin/QAppDebugTextEdit.cpp \
    htmledit/xmlhighlighter.cpp \
    htmledit/table_setting.cpp \
    htmledit/qvimedit.cpp \
    htmledit/interface.cpp \
    htmledit/href_gui.cpp \
    htmledit/edit_html.cpp \
    htmledit/base_edit.cpp \
    plugins/KnowledgeBase/knowledgebaseplugin.cpp \
    plugins/KnowledgeBase/mytabwidget.cpp \
    plugins/KnowledgeBase/knowledgebaseconfigwidget.cpp \
    plugins/KnowledgeBase/knowledgebaseguidecreatefolders.cpp \
    plugins/KnowledgeBase/kbcreatefolderwizard.cpp

RESOURCES       = QLuoshu.qrc \
    plugins/KnowledgeBase/KnowledgeBase.qrc \
    attach.qrc

FORMS += \
    leftbottombar.ui \
    plugins/KnowledgeBase/knowledgebasemainwindow.ui \
    plugins/KnowledgeBase/knowledgebase.ui \
    ui/edit_html.ui \
    plugins/KnowledgeBase/knowledgebaseconfigwidget.ui \
    plugins/KnowledgeBase/knowledgebaseguidecreatefolders.ui \
    plugins/KnowledgeBase/kbcreatefolderwizard.ui


contains(CONFIG, static): {
       ######### on main.cpp use defined ########
       DEFINES += _USE_STATIC_BUILDS_

        exists($$[QT_INSTALL_PLUGINS]/imageformats/qjpeg.a) {
            QTPLUGIN += qjpeg
            DEFINES += _USE_qjpeg
        }
        exists($$[QT_INSTALL_PLUGINS]/imageformats/libqgif.a) {
            QTPLUGIN += qgif
            DEFINES += _USE_qgif
        }
        exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.a) {
            QTPLUGIN += qmng
            DEFINES += _USE_qmng
        }
        exists($$[QT_INSTALL_PLUGINS]/imageformats/libqtiff.a) {
            QTPLUGIN += qtiff
            DEFINES += _USE_qtiff
        }
}

## lrelease src.pro

TRANSLATIONS += locale/edit_de.ts \
                locale/edit_en.ts \
                locale/edit_fr.ts \
                locale/edit_tr.ts \
                locale/edit_it.ts
